package com.feiyuan.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feiyuan.book.vo.BookShelfVO;
import com.feiyuan.common.utils.PageUtils;
import com.feiyuan.book.entity.BookUserShelfEntity;

import java.util.Map;

/**
 * 
 *
 * @author Xupf
 * @email xupengfei131276@126.com
 * @date 2024-10-10 20:44:22
 */
public interface BookUserShelfService extends IService<BookUserShelfEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 从阅读页返回时，将用户读到的章节ID和章节翻页下标更新到书架表中
     * @param userId 用户ID
     * @param bookShelf 返回时需要的数据
     * @return Map
     */
    Map<String, Object> backPress(Long userId, BookShelfVO bookShelf);

    /**
     * 个人书架列表
     * @param userId 用户ID
     * @return Map
     */
    Map<String, Object> bqgList(Long userId, Integer pageIndex, Integer pageSize);

    /**
     * 删除书架信息
     * @param bookShelfVO 书架信息
     * @return Map
     */
    Map<String, Object> deleteShelf(BookShelfVO bookShelfVO);
}

